<!doctype html>
<html>
<head>
    <title>订单列表页面</title>
    <?php $this->load->module('admin/index/page_header');?>
    <link href="<?php echo URLPRE;?>static/admin/css/font_icon.css" rel="stylesheet" />
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/Kalendajs/build/kalendae.standalone.js"></script>
    <link href="<?php echo URLPRE;?>static/public/Lib/Kalendajs/build/kalendae.css" rel="stylesheet" />
</head>
<body>

<style>
    .wrap{background: #f2f6f8;width: 99%;margin: 0 auto;padding: 10px 10px 200px 10px }
    .index-page-title{font-size:25px;text-align: center;display: block;padding-bottom:2px;color: #34495E;}
    .index-page-time{font-size:18px;text-align: center;display: block;padding:2px;margin-top:11px;color: #666;}
    .table_list{
        margin-top: 10px;
        overflow: hidden;
        background: #fafafa;
        -webkit-box-shadow: 0px 0px 9px 2px rgba(191,187,191,0.35);
        -moz-box-shadow: 0px 0px 9px 2px rgba(191,187,191,0.35);
        box-shadow: 0px 0px 9px 2px rgba(191,187,191,0.35);
        padding: 10px;

    }

    .table_list .tr-title-wrap {
        height: 42px;
    }

    .table_list .tr-title-wrap ,.table_list .tr-title-wrap:hover td{background: #0d98ce;color: #fff;}

    .table_list .tr-title-wrap td:hover{background-image: none}
    .table_list:nth-child(3) .tr-title-wrap,  .table_list:nth-child(3) .tr-title-wrap:hover td{
        background: #d9534f;
        color: #fff;
    }

     .table_list:nth-child(4) .tr-title-wrap,  .table_list:nth-child(4) .tr-title-wrap:hover td {
        background: #5bc0de;
        color: #fff;
    }

    .table_list:nth-child(5) .tr-title-wrap,  .table_list:nth-child(5) .tr-title-wrap:hover td {
        background: #f0ad4e;
        color: #fff;
    }

    .table_list:nth-child(6) .tr-title-wrap, .table_list:nth-child(6) .tr-title-wrap:hover td {
        background: #5cb85c;
        color: #fff;
    }

    .table_list .h_a{
        font-size: 15px;
        border:none;
        border-left: 3px solid #34495E;background: #fff;margin-bottom: 2px;
        padding: 1px 1px 1px 8px;
        color: #666666;
        font-weight: 500;
        margin-bottom:10px;
    }
    .table_list:nth-child(3) .h_a{ border-left: 3px solid #d9534f; color: #666666;}
    .table_list:nth-child(4) .h_a{ border-left: 3px solid #5bc0de; color: #666666;}
    .table_list:nth-child(5) .h_a{ border-left: 3px solid #f0ad4e; color: #666666;}
    .table_list:nth-child(6) .h_a{ border-left: 3px solid #5cb85c; color: #666666;}

</style>
<script>
    $(function(){
        //setInterval("$('#currentTime').text(new Date().toLocalsString());",1000);
        setInterval(function(){
            $("#currentTime").text(new Date().toLocaleString());
        },1000);
    });

</script>
<div class="wrap J_check_wrap">

    <h1 class="index-page-title">当天待操作的订单</h1>
    <span class="index-page-time">现在时间：<span id="currentTime"></span></span>

    <div class="table_list"  >
        <div class="h_a">待审核的订单</div>
        <table width="100%" >
            <tr class="tr-title-wrap">
                <td>ID</td>
                <td width="25%">房间号</td>
                <td>人数</td>
                <td>联系信息</td>
                <td>入住/离店</td>
                <td>订单状态</td>
                <td>下单时间</td>
                <td>操作</td>
            </tr>
            <?php if($wait_list):?>
                <tbody>
                <?php foreach($wait_list as $val):?>
                    <tr>
                        <td>
                            <div class="mb5">
                                <span class="mr15"><?php echo $val['order_id'];?></span>
                            </div>
                        </td>
                        <td>
                            <div class="mb5">
                                <span class="mr15 text-ellipsis"><?php echo $val['rstr'];?></span><br />
                            </div>
                        </td>
                        <td>
                            <div class="mb5">
                                <span class="mr15"><?php echo $val['number'];?></span>
                            </div>
                        </td>
                        <td>
                            <div class="mb5">
                                <span class="mr15">联系人：<?php echo $val['contact_name'];?></span><br />
                                <span class="mr15">手机号码：<?php echo $val['phone_num'];?></span><br />
                            </div>
                        </td>
                        <td>
                            <div class="mb5">
                                <span class="mr15">入住：<?php echo fdate($val['start_date']);?></span><br />
                                <span class="mr15">离店：<?php echo fdate($val['end_date']);?></span><br />
                            </div>
                        </td>
                        <td>
                            <div class="mb5">

                                    <span class="mr15"><?php echo $val['order_status_name'];?>

                                    </span><br />
                                <span class="mr15"><?php echo $val['pay_status_name'];?></span><br />
                            </div>
                        </td>
                        <td>
                            <div class="mb5">
                                <?php echo fdatetime($val['add_time']);?>
                            </div>

                            <div class="mb5">
                                    <span class="mr15"><?php if ($val['cat_type'] == 1): ?>
                                            <span
                                                class="red">门市订单</span>
                                        <?php else: ?>
                                            <span
                                                class="green">游客订单</span><?php endif; ?></span><br />
                            </div>
                        </td>
                        <td class="btn_min">
                            <div class="menu_select">
                                <ul>
                                    <?php if(isset($val['edit_url'])):?>
                                        <li><a class="icon-pencil" href="<?php echo $val['edit_url'];?>"> <?php echo $val['edit_url_title'];?></a></li>
                                    <?php endif;?>
                                </ul>
                            </div>
                        </td>
                    </tr>
                <?php endforeach;?>
                </tbody>
            <?php endif;?>
        </table>
    </div>

    <div class="table_list" >
            <div class="h_a">未入住订单</div>
            <table width="100%" >
                <tr class="tr-title-wrap">
                    <td>ID</td>
                    <td width="25%">房间号</td>
                    <td>人数</td>
                    <td>联系信息</td>
                    <td>入住/离店</td>
                    <td>订单状态</td>
                    <td>下单时间</td>
                    <td>操作</td>
                </tr>
                <?php if($not_in_list):?>
                    <tbody>
                    <?php foreach($not_in_list as $val):?>
                        <tr>
                            <td>
                                <div class="mb5">
                                    <span class="mr15"><?php echo $val['order_id'];?></span>
                                </div>
                            </td>
                            <td>
                                <div class="mb5">
                                    <span class="mr15 text-ellipsis"><?php echo $val['rstr'];?></span><br />
                                </div>
                            </td>
                            <td>
                                <div class="mb5">
                                    <span class="mr15"><?php echo $val['number'];?></span>
                                </div>
                            </td>
                            <td>
                                <div class="mb5">
                                    <span class="mr15">联系人：<?php echo $val['contact_name'];?></span><br />
                                    <span class="mr15">手机号：<?php echo $val['phone_num'];?></span><br />
                                </div>
                            </td>
                            <td>
                                <div class="mb5">
                                    <span class="mr15">入住：<?php echo fdate($val['start_date']);?></span><br />
                                    <span class="mr15">离店：<?php echo fdate($val['end_date']);?></span><br />
                                </div>
                            </td>
                            <td>
                                <div class="mb5">

                                    <?php if($val['order_status'] == 4):?>
                                        <span class="mr15">未入住</span><br />
                                    <?php endif;?>

                                    <span class="mr15"><?php echo $val['order_status_name'];?> </span><br />

                                    <span class="mr15"><?php echo $val['pay_status_name'];?></span><br />
                                </div>
                            </td>
                            <td><?php echo fdatetime($val['add_time']);?>
                                <div class="mb5">
                                    <span class="mr15"><?php if ($val['cat_type'] == 1): ?>
                                            <span
                                                class="red">门市订单</span>
                                        <?php else: ?>
                                            <span
                                                class="green">游客订单</span><?php endif; ?></span><br />
                                </div>
                            </td>
                            <td class="btn_min">
                                <div class="menu_select">
                                    <ul>
                                        <?php if(isset($val['edit_url'])):?>
                                            <li><a class="icon-pencil" href="<?php echo $val['edit_url'];?>"> <?php echo $val['edit_url_title'];?></a></li>
                                        <?php endif;?>
                                    </ul>
                                </div>
                            </td>
                        </tr>
                    <?php endforeach;?>
                    </tbody>
                <?php endif;?>
            </table>
        </div>
    <div class="table_list"  >
        <div class="h_a">已入住订单</div>
        <table width="100%" >
            <tr class="tr-title-wrap">
                <td>ID</td>
                <td width="25%">房间号</td>
                <td>人数</td>
                <td>联系信息</td>
                <td>入住/离店</td>
                <td>订单状态</td>
                <td>下单时间</td>
                <td>操作</td>
            </tr>
            <?php if($in_list):?>
                <tbody>
                <?php foreach($in_list as $val):?>
                    <tr>
                        <td>
                            <div class="mb5">
                                <span class="mr15"><?php echo $val['order_id'];?></span>
                            </div>
                        </td>
                        <td>
                            <div class="mb5">
                                <span class="mr15 text-ellipsis"><?php echo $val['rstr'];?></span><br />
                            </div>
                        </td>
                        <td>
                            <div class="mb5">
                                <span class="mr15"><?php echo $val['number'];?></span>
                            </div>
                        </td>
                        <td>
                            <div class="mb5">
                                <span class="mr15">联系人：<?php echo $val['contact_name'];?></span><br />
                                <span class="mr15">手机号码：<?php echo $val['phone_num'];?></span><br />
                            </div>
                        </td>
                        <td>
                            <div class="mb5">
                                <span class="mr15">入住：<?php echo fdate($val['start_date']);?></span><br />
                                <span class="mr15">离店：<?php echo fdate($val['end_date']);?></span><br />
                            </div>
                        </td>
                        <td>
                            <div class="mb5">

                                    <span class="mr15"><?php echo $val['order_status_name'];?>

                                    </span><br />
                                <span class="mr15"><?php echo $val['pay_status_name'];?></span><br />
                            </div>
                        </td>
                        <td><?php echo fdatetime($val['add_time']);?>
                            <div class="mb5">
                                    <span class="mr15"><?php if ($val['cat_type'] == 1): ?>
                                            <span
                                                class="red">门市订单</span>
                                        <?php else: ?>
                                            <span
                                                class="green">游客订单</span><?php endif; ?></span><br />
                            </div>
                        </td>
                        <td class="btn_min">
                            <div class="menu_select">
                                <ul>
                                    <?php if(isset($val['edit_url'])):?>
                                        <li><a class="icon-pencil" href="<?php echo $val['edit_url'];?>"> <?php echo $val['edit_url_title'];?></a></li>
                                    <?php endif;?>
                                </ul>
                            </div>
                        </td>
                    </tr>
                <?php endforeach;?>
                </tbody>
            <?php endif;?>
        </table>
    </div>
    <div class="table_list"  >
        <div class="h_a">已完成订单</div>
        <table width="100%" >
            <tr class="tr-title-wrap">
                <td>ID</td>
                <td width="25%">房间号</td>
                <td>人数</td>
                <td>联系信息</td>
                <td>入住/离店</td>
                <td>订单状态</td>
                <td>下单时间</td>
                <td>操作</td>
            </tr>
            <?php if($comp_list):?>
                <tbody>
                <?php foreach($comp_list as $val):?>
                    <tr>
                        <td>
                            <div class="mb5">
                                <span class="mr15"><?php echo $val['order_id'];?></span>
                            </div>
                        </td>
                        <td>
                            <div class="mb5">
                                <span class="mr15 text-ellipsis"><?php echo $val['rstr'];?></span><br />
                            </div>
                        </td>
                        <td>
                            <div class="mb5">
                                <span class="mr15"><?php echo $val['number'];?></span>
                            </div>
                        </td>
                        <td>
                            <div class="mb5">
                                <span class="mr15">联系人：<?php echo $val['contact_name'];?></span><br />
                                <span class="mr15">手机号码：<?php echo $val['phone_num'];?></span><br />
                            </div>
                        </td>
                        <td>
                            <div class="mb5">
                                <span class="mr15">入住：<?php echo fdate($val['start_date']);?></span><br />
                                <span class="mr15">离店：<?php echo fdate($val['end_date']);?></span><br />
                            </div>
                        </td>
                        <td>
                            <div class="mb5">

                                    <span class="mr15"><?php echo $val['order_status_name'];?>

                                    </span><br />
                                <span class="mr15"><?php echo $val['pay_status_name'];?></span><br />
                            </div>
                        </td>
                        <td>
                            <div class="mb5">
                                <?php echo fdatetime($val['add_time']);?>
                                </div>

                            <div class="mb5">
                                    <span class="mr15"><?php if ($val['cat_type'] == 1): ?>
                                            <span
                                                class="red">门市订单</span>
                                        <?php else: ?>
                                            <span
                                                class="green">游客订单</span><?php endif; ?></span><br />
                            </div>
                        </td>
                        <td class="btn_min">
                            <div class="menu_select">
                                <ul>
                                    <?php if(isset($val['edit_url'])):?>
                                        <li><a class="icon-pencil" href="<?php echo $val['edit_url'];?>"> <?php echo $val['edit_url_title'];?></a></li>
                                    <?php endif;?>
                                </ul>
                            </div>
                        </td>
                    </tr>
                <?php endforeach;?>
                </tbody>
            <?php endif;?>
        </table>
    </div>





</div>
</body>
</html>